package File;

import java.io.File;

public class DeleteFileDirDemo {
    public static void main(String[] args) {
        for (int i=1;i<=10;i++){
            File file=new File("./test"+i+".txt");
            if (file.exists()){
                file.delete();
                System.out.println("delete");
            }else {
                System.out.println("no");
            }

        }
    }
}
